package com.example.frameboot.common;


import com.example.frameboot.been.PageDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

/**
 * @author zhujy7@centaline.com.cn
 * @description 分页
 * @date 2020/1/8 15:19
 */
@Getter
@Setter
@NoArgsConstructor
public class PageResp<T> extends ListResp {
    /**
     * 分页
     */
    @ApiModelProperty(value = "分页模型", position = 6)
    private PageDto page;

    public PageResp(List<T> object, PageDto page) {
        super(object);
        this.page = page;

    }


}
